<%--
  Created by IntelliJ IDEA.
  User: wty
  Date: 2018/8/5 005
  Time: 11:54
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8" />
    <title>忘记密码</title>
    <link rel="shortcut icon" href="${pageContext.request.contextPath}/static/img/higou.png" />
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/static/css/common.css" />
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/static/css/top.css" />
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/static/css/forget.css" />
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/static/css/jumei.forget.css" />
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/static/css/jumei_sign.css" />
    <link href="${pageContext.request.contextPath}/static/css/bootstrap.min.css" rel="stylesheet">
    <script src="${pageContext.request.contextPath}/static/js/bootstrap.min.js"></script>
    <script src="${pageContext.request.contextPath}/static/js/jquery-3.3.1.min.js"></script>
</head>

<body>
<div id="header_container">
    <div id="logo">
        <img src="static/img/higou.png" id="logoimg">
        <div class="header_logo_box">
            <a href="#" rel="nofollow" class="top_link lightning" target="_blank"></a>
            <a href="#" rel="nofollow" class="top_link gild" target="_blank"></a>
            <a href="#" rel="nofollow" class="top_link credit" target="_blank"></a>
        </div>
    </div>
</div>

<div data-reactid=".0">
    <div class="sign" >
        <div class="sign_main resetreq_main" >
            <div class="main" >
                <div class="content_head" >
                    <div class="clear" ></div>
                </div>
                <div class="ret_wrapper forget_content step_1" >
                    <form id="resetreq-user-form" method="post" class="resetreq-user-form" action="" >
                        <div class="line tip" >
                            <label ></label>
                            <div class="textbox_ui" >请输入您的登录名，您的登录名可能是您的手机号、邮箱或用户名</div>
                        </div>
                        <div class="line hastip" >
                            <label >登录名</label>
                            <div class="textbox_ui " >
                                <input placeholder="已验证手机/邮箱/用户名" id="mailorhp" name="mailorhp" class="" value="" type="text">
                                <div class="focus_text" ></div>
                                <noscript ></noscript>
                            </div>
                        </div>
<%--                        <div class="line verityWrap" >
                            <label >验证码</label>
                            <div class="textbox_ui error_ui" >
                                <input placeholder="请输入验证码" name="verify_code" class="" id="signup-hashcode-confirm"
                                       type="text">
                                <div class="invalid" style="display:block;" >
                                    <i ></i>
                                </div>
                            </div>
                        </div>--%>
                        <div class="act" >
                            <input value="下一步" class="retbtn forget_btn" id="submit" type="submit">
                        </div>
                        <div class="line msg" >
                            <label ></label>
                            <div class="textbox_ui" >
                                <span >如果您忘记了登录名，将无法找回您的账户信息，您还可以</span>
                                <a href="register.jsp" >重新注册</a>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
            <div class="shadow_l" ></div>
            <div class="shadow_r" ></div>
        </div>
    </div>
    <div class="clear" ></div>
</div>
</body>
<script>
    $("#submit").click(function (e) {
        $.ajax({

            url: 'sendEmailServlet.do',
            type: 'POST',
            dataType: 'json',
            async: false,
            data: {
                u_mail: $('#mailorhp').val()
            },
            success: function (data) {
                if (data.status === 'success') {
                    alert('邮件已发送请注意查收!');
                    // location.href="index.jsp";
                }else if (data.status === 'fail') {
                    alert('邮箱填写错误!');
                    captchaObj.reset();
                }else if (data.status === 'isNull') {
                    alert('请输入账号!!!')
                    captchaObj.reset();
                }
            }
        })
    });
</script>
</html>
